<%@page import="com.google.gson.Gson"%>
<%@page import="entities.Recently"%>
<%@page import="java.util.List"%>
<%@page import="systems.RecentlyArticle"%>
<%
	List<String> ids = RecentlyArticle.getArticles();
	

%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
	
	<div class="adv">
		<script type="text/javascript"><!--
		google_ad_client = "ca-pub-2883566427648799";
		/* ads 160x600 */
		google_ad_slot = "7780702287";
		google_ad_width = 160;
		google_ad_height = 600;
		//-->
		</script>
		<script type="text/javascript"
		src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
		</script>
	</div>
	<div class="recentlyView">
		<h4>Recently View</h4>
		<ul>
			<% 
			for (int i = 0; i < ids.size(); i++) {
				if (i >= 10) break;
				Recently recently = new Gson().fromJson(ids.get(i), Recently.class);
			%>
			<li><a href="<%=recently.getUrl()%>"><%=recently.getName() %></a></li>
			<% } %>
		</ul>	
	</div>